<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>积分商城 - Powered By ${systemConfig.systemName}</title>
<meta name="Author" content="webmall Team" />
<meta name="Copyright" content="webmall" />
<#if (systemConfig.metaKeywords)! != ""><meta name="keywords" content="${systemConfig.metaKeywords}" /></#if>
<#if (systemConfig.metaDescription)! != ""><meta name="description" content="${systemConfig.metaDescription}" /></#if>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<#include "/WEB-INF/template/common/include.ftl">
<link href="${base}/template/shop/css/login.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/shop/css/register.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/shop/css/index.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/webmall/css/pointproduct.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/common/css/tabswitch.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/template/shop/js/login.js"></script>
<script type="text/javascript" src="${base}/template/shop/js/register.js"></script>
<script type="text/javascript" src="${base}/template/shop/js/index.js"></script>
<script type="text/javascript" src="${base}/template/shop/js/product.js"></script>
<script type="text/javascript" src="${base}/template/common/js/tabswitch.js"></script>
<link href="${base}/template/common/paper/paper.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/template/common/paper/paper.js"></script>
<script type="text/javascript">
	$().ready( function() {
		$(".kinds div").click( function(event) {
			$(".kinds div").each(function() {
				$this = $(this);
				$(this).removeClass("kinds_checked");
			})
			$(this).addClass("kinds_checked"); 
			var $this = $(this);
			$('#'+$(this).metadata().elementId).val($(this).metadata().value);
			loadingPointProduct(1);
		});
	});
function loadingPointProduct(page)
{
	if(page==undefined||page==null || isNaN(page) || page < 1)
	{
		page=1;
	}
	$('#pageNumber').val(page);
	$('#pointForm').submit();
}
</script>
</head>
<body class="pointproduct">
<#assign checkedMenuId='402881882ba98cce012ba9d5a2460018'/>
	<#include "/WEB-INF/template/shop/header.ftl">
	<div class="body">
		<div class="left">
			<div class="slider">
				<div class="items">
					<div class="cycle_parent">
						<div id="test1" class="cycle">
								<#list bannerList as list>
									<img src="${base}${list}" />
								</#list>
								<img src="${base}1" />
								<img src="${base}2" />
						</div>
						<div class="cycle_nav" id="test1_btn" style="text-align:center;">
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="right">
			<div class="member_info">
				<div class="icon"></div>
				<div class="point_member">
					<div class="hi">
						<span>您好！</span>
						<a href="${base}/shop/order!pointdetail.action?mId=pointdetail">积分明细</a>
					</div>
					<div class="hi">
						<span>当前积分:${Session["member"]}！</span>
						<a href="${base}/shop/order!pointexchange.action?mId=my_exchange">查看兑换</a>
					</div>
				</div>
				<div class="blank"></div>
				<div class="point_tops">
					<div class="gray_title">一周热兑排行榜</div>
					<div class="content">
						<ul>
							<#list weekTopList as list>
								<li>
									<a href="${base}/shop/pointproduct!view.action?id=${list.id}">
										<#if list.name?length lt 30>${list.name}<#else>${list.name[0..30]}...</#if>
									</a>
								</li>
							</#list>
						</ul>
					</div>
				</div>
				<div class="blank"></div>
				<div class="point_tops">
					<div class="gray_title">积分公告</div>
					<div class="content">
						<#list articleList as list>
							<ul>
								<#list (articleList)! as list>
									<li>
										<#if (list.title?length < 15)>
											<a href="${base}${list.htmlFilePath}" title="${list.title}" target="_blank">${list.title}</a>
										<#else>
											<a href="${base}${list.htmlFilePath}" title="${list.title}" target="_blank">${list.title[0..12]}...</a>
										</#if>
									</li>
									<#if list_index + 1 ==3>
										<#break/>
									</#if>
								</#list>
							</ul>
						</#list>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="blank"></div>
	<div class="body">
		<form id="pointForm" action="pointproduct!list.action" method="post" onSubmit="return false;" >
			<input type="hidden" id="pageNumber" name="pager.pageNumber" value="${pager.pageNumber}" />
			<input type="hidden" id="pointType" name="kindType" value="${kindType}" />
		<div class="bodyLeft">
			<div class="common_title">兑换专区</div>
			<div class="kinds">
				<div class="<#if (kindType)! == "">kinds_checked</#if> {elementId:'consultType',value:''}">全部好礼</div>
				<div class="<#if (kindType)! == "1">kinds_checked</#if> {elementId:'pointType',value:'1'} ">积分活动</div>
				<div class="<#if (kindType)! == "2">kinds_checked</#if> {elementId:'pointType',value:'2'} ">衣-服装配饰</div>
				<div class="<#if (kindType)! == "3">kinds_checked</#if> {elementId:'pointType',value:'3'} ">食-美食美酒</div>
				<div class="<#if (kindType)! == "4">kinds_checked</#if> {elementId:'pointType',value:'4'} ">住-家居健康</div>
				<div class="<#if (kindType)! == "5">kinds_checked</#if> {elementId:'pointType',value:'5'} ">行-户外活动</div>
				<div class="<#if (kindType)! == "6">kinds_checked</#if> {elementId:'pointType',value:'6'} ">美妆护肤</div>
				<div class="<#if (kindType)! == "7">kinds_checked</#if> {elementId:'pointType',value:'7'} ">妈咪宝贝</div>
				<div class="<#if (kindType)! == "8">kinds_checked</#if> {elementId:'pointType',value:'8'} ">个性礼品</div>
				<div class="<#if (kindType)! == "9">kinds_checked</#if> {elementId:'pointType',value:'9'} ">在线娱乐</div>
				<div class="<#if (kindType)! == "10">kinds_checked</#if> {elementId:'pointType',value:'10'} ">购物商城</div>
				<div class="<#if (kindType)! == "11">kinds_checked</#if> {elementId:'pointType',value:'11'} ">时尚礼品</div>
				<div class="<#if (kindType)! == "12">kinds_checked</#if> {elementId:'pointType',value:'12'} ">学习健康</div>
			</div>
		</div>
		<div class="bodyRight">
				<div class="product_content common_border">
					<div class="common_title">
						积分从
						<input type="text" name="minValue"  value="${minValue}" />
						到
						<input type="text" name="maxValue" value="${maxValue}" />
						<button onclick="loadingPointProduct();">查询</button>
					</div>
					<div class="products">
					<ul>
						<#list pager.list as list>
							<li>
								<a href="${base}/shop/pointproduct!view.action?id=${list.id}">
									<img src="${base}${list.imageUrl}" />
								</a>
								<div class="name">
								<a href="${base}/shop/pointproduct!view.action?id=${list.id}">
									<#if list.name?length lt 30>${list.name}<#else>${list.name[0..30]}...</#if>
								</a>
								</div>
								<div class="point">积分: ${list.point}</div>
								
							</li>
						</#list>
					</ul>
					</div>
				</div>
				
			<div class="blank"></div>
			<div id="pointproduct_pager" class="pager pointproduct_pager"></div>
			<script>
				pointproduct = new showPages('pointproduct','','loadingPointProduct',${pager.pageNumber},'');
				pointproduct.pageCount =${pager.pageCount};
				pointproduct.printHtml("pointproduct_pager",6);
			</script>
		</div>
		</form>
	</div>
	<div class="blank"></div>
	<#include "/WEB-INF/template/shop/footer.ftl">
</body>
</html>